<%@ page import="com.devicemantra.coordinate.dataobjects.*;" %>
<HTML>
<HEAD>
<script type="text/javascript" src="/js/jquery.js"></script> 
<script type="text/javascript" src="/js/jquery.corner.js"></script> 
<script type="text/javascript">
</script>
<style type="text/css">
.box {
background-color : #DBE5F3;
margin:2px;
padding:2px;
font-family: sans-serif; 
font-size:5px;
text-align:center;
}

.box1 {
background-color : #29F30E;
margin:2px;
padding:5px;
font-family: sans-serif; 
font-size:10px;
text-align:center;
}
</style> 

<script>
$(document).ready(
function () 
{
	//alert("markers rounding function called");
	
	/*$("#id_logo").fadeIn(500);
	$("div.box").fadeIn(500); */
	$("div.box").corner(); 
	$("div.box1").corner("5px"); 
	
}
);
</script>

</HEAD>
<BODY>
<div style="width:100px;float:left;top:0px;"><img id=id_logo src="/images/coordinate.png" height=20 /></div>
<div class=box style="width:100px;float:left;text-align:center;top:0px;"><A  href="/modules/department/administration/admin.jsp" TARGET="mainframe"><font face=verdana color=blue size=2 >Administration</font></A></div>
<div class=box style="width:100px;float:left;text-align:center;top:0px;"><A  href="/modules/department/fms/fms.jsp" TARGET="mainframe"><font face=verdana color=blue size=2 >FMS</font></A></div>
<div class=box style="width:100px;float:left;text-align:center;top:0px;"><A  href="/modules/department/ms/ms.jsp" TARGET="mainframe"><font face=verdana color=blue size=2 >Messaging</font></A></div>
<div class=box style="width:100px;float:left;text-align:center;top:0px;"><A  href="/modules/department/low-frame.jsp" TARGET="mainframe"><font face=verdana color=blue size=2 >Home</font></A></div>
<div class=box style="width:100px;float:left;text-align:center;top:0px;"><A  href="/login.jsp" TARGET="_top"><font face=verdana color=blue size=2 >Sign Out</font></A></div>
<div class=box1 style="position:absolute; right:0px;top:0px;">
<% 
	System.out.println("Username is " + request.getSession().getAttribute("user"));
	CDepartment lDept = null;
	String lUserName = (String)request.getSession().getAttribute("user");
	//out.println("User name is " + lUserName);
	//System.out.println("User name is " + lUserName);
	if(lUserName != null ) {
		lDept = CDepartmentFactory.getDepartment(request.getSession().getAttribute("user").toString());
	}
	/*TODO: Is it a good idea to store this object in the session ? */
%>
<img src=<% out.print(lDept.getLogo().getUrl()); %> height=15 width=12/>
<%	
   out.print( "MINISTRY OF " + request.getSession().getAttribute("user"));
   System.out.println("Username is " + request.getSession().getAttribute("user"));
%> 
</div>
</div>
</BODY>
</HTML>


